import { stringify } from 'qs';
import request from '@/utils/request';

//一、区域管理
//1、区域管理查询列表
export async function LocationList(params) {
  return request(`/server/api/mds/mds-location-area/selectAreaList`, {
    method: 'POST',
    body: params,
  });
}
///2、区域管理新增
export async function locationAdd(params) {
  return request(
    `/server/api/mds/mds-location-area/addAreaInfo`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}
//3、区域管理编辑
export async function locationEdit(params) {
  return request(
    `/server/api/mds/mds-location-area/updateAreaInfo`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}

//4、区域管理详情
export async function locationDetails(params) {
  return request(
    `/server/api/mds/mds-location-area/viewDetails`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}
//5、区域管理禁用
export async function disabledLocationInfo(params) {
  return request(
    `/server/api/mds/mds-distribution/disableMdsDistribution`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}
//6、区域管理启用
export async function enableLocationInfo(params) {
  return request(
    `/server/api/mds/mds-dict/enableDictInfo`,
    {
      method: 'POST',
      body: params,
    },
    true
  );
}
